set version=1.0.1.3
dotnet build src/Xc.Views.Core/								  -p:Version=%version%
dotnet build src/Xc.Views.Controls/							  -p:Version=%version%
dotnet build src/Xc.Views.Booster/							  -p:Version=%version%
dotnet build src/Xc.DataAccess.SerialPorts/					  -p:Version=%version%
dotnet build src/Xc.DataAccess.Core/						  -p:Version=%version%
dotnet build src/Xc.DataAccess.CodeReader/					  -p:Version=%version%
dotnet build src/Xc.DataAccess.Keys/						  -p:Version=%version%
dotnet build src/Xc.Logics.AepCoap/						  -p:Version=%version%
dotnet build src/Xc.DataAccess.AepCoapCore/					  -p:Version=%version%
dotnet build src/Xc.DataAccess.DataBases.Logs/					  -p:Version=%version%
dotnet build src/Xc.DataAccess.DataBases.Core/					  -p:Version=%version%
dotnet build src/Xc.DataAccess.Protocoals.WaterMeters/					  -p:Version=%version%
dotnet build src/Xc.DataAccess.WaterMeters.ClientSides/					  -p:Version=%version%
dotnet build src/Xc.DataAccess.Processes/					  -p:Version=%version%

dotnet pack -c Release -o build -p:Version=%version% src/Xc.Views.Core
dotnet pack -c Release -o build -p:Version=%version% src/Xc.Views.Controls
dotnet pack -c Release -o build -p:Version=%version% src/Xc.Views.Booster
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.SerialPorts
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.Core
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.CodeReader
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.Keys
dotnet pack -c Release -o build -p:Version=%version% src/Xc.Logics.AepCoap
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.AepCoapCore
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.DataBases.Logs
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.DataBases.Core
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.Protocoals.WaterMeters
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.WaterMeters.ClientSides
dotnet pack -c Release -o build -p:Version=%version% src/Xc.DataAccess.Processes

cd build
dotnet nuget push *.nupkg  -k AzureDevops --skip-duplicate -s tfs
dotnet nuget push *.nupkg  -k oy2hatzv4gbx2ii5cujqxqcqzthnhveepnildtbpcbwltm --skip-duplicate -s nuget.org
pause